package com.lzx.applib.data;

import com.lzx.applib.utils.ParserUtil;

import org.xmlpull.v1.XmlPullParser;

/**
 * Created by Lzx on 16/09/12 0012.
 */
public class AppUrl implements IXmlParser {

    public String url;
    public String name;
    public boolean cache;
    public long cacheTime;

    @Override
    public void parse(XmlPullParser parser) {
        url = parser.getAttributeValue(null, "url");
        name = parser.getAttributeValue(null, "name");
        cache = ParserUtil.parse(parser.getAttributeValue(null, "cache"), false);
        cacheTime = ParserUtil.parse(parser.getAttributeValue(null, "cacheTime"), -1);
    }
}
